<?php
/*
*All rights reserved: Json.
*Links:http://www.liyaoquan.cn.
*Links:http://imarkchina.cn.
*Links:http://www.imarkchina.cn.
*/

/**
 * 博客前台主控制器，负责，业务流程判断
 */
Class IndexAction extends Action{

	/**
	 * 博客首页
	 * @return [type] [description]
	 */
	Public function index(){
		//配置缓存名称
		C('TPLCACHENAME', 'index-index');
        //开启缓存
		C('TPLCACHEING', C('CHECKCACHEING'));
		if (!$this->isCache('index-index')) {
			$M = M('Index')->indexPost();
			$T = M('Index')->isTop();
			$this->assign('check', $T['check']);
			$this->assign('top', $T['top']);
			$this->assign('postfile', $M);
		}
		$this->display();
	}
}